﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _74接口特点
{
    class Program
    {
        static void Main(string[] args)
        {
            IFlyable fly = new Person();
            fly.Fly();
            Console.ReadKey();
        }
    }

    public class Person : IFlyable
    {
        public void Fly()
        {
            Console.WriteLine("人类");
        }
    }



    public interface IFlyable
    {
        //不允许有访问修饰符
        //方法，自动属性
        void Fly();
    }
}
